import type { AppRouteModule } from '/@/router/types';
import { LAYOUT } from '/@/router/constant';

const dishes: AppRouteModule = {
  path: '/dishes',
  name: 'dishes',
  component: LAYOUT,
  meta: {
    orderNo: 4,
    icon: 'mdi:rice',
    title: '菜品',
  },
  children: [
    {
      path: '/dishes/cuisineType',
      name: '菜品分类',
      // component: () => import('/@/views/sys/about/index.vue'),
      component: () => import('/@/views/cuisine/cuisineType/Index.vue'),
      meta: {
        title: '菜品分类',
      },
    },
    {
      path: '/dishes/cuisine',
      name: '菜品库',
      component: () => import('/@/views/cuisine/cuisine/Index.vue'),
      meta: {
        title: '菜品库',
      },
    },
    {
      path: '/dishes/specs',
      name: '规格',
      component: () => import('/@/views/cuisine/specs/Index.vue'),
      meta: {
        title: '规格',
      },
    },
    {
      path: '/dishes/feed',
      name: '加料',
      component: () => import('/@/views/cuisine/feed/Index.vue'),
      meta: {
        title: '加料',
      },
    },
    {
      path: '/dishes/practice',
      name: '做法',
      component: () => import('/@/views/cuisine/practice/Index.vue'),
      meta: {
        title: '做法',
      },
    },
    {
      path: '/dishes/unit',
      name: '单位',
      component: () => import('/@/views/cuisine/unit/Index.vue'),
      meta: {
        title: '单位',
      },
    },
  ],
};

export default dishes;
